//import Home from '@/pages/Home'
//import Tags from '@/pages/tags'
//import Category from '@/pages/Category'
//import Archive from '@/pages/Archive'
//import Message from '@/pages/Message'
//import Links from '@/pages/Links'
//import About from '@/pages/About'
//import Article from '@/pages/Article'

const routes = [
    {
      path: '/Home',
      name: 'Home',
      //component: Home
      component:  resolve => require(['@/pages/Home'], resolve),
    },
    {
      path:'/edit',
      name:'edit',
      // redirect:'edit',
      component:  resolve => require(['@/pages/edit'], resolve),
   },
   {
    path:'/details/:name?',
    name:'details',
    // redirect:'edit',
    component:  resolve => require(['@/pages/ArticleDetails'], resolve),
 },
    {
      path: '/archives/:year?/:month?',
      name: 'archive',
      //component: Archive
      component:  resolve => require(['@/pages/Archive'], resolve),
    },{
      path: '/message',
      name: 'message',
      //component: Message
      component:  resolve => require(['@/pages/Message'], resolve),
    },{
      path: '/link',
      name: 'link',
      //component: Links
      component:  resolve => require(['@/pages/Links'], resolve),
    },{
      path: '/about',
      name: 'about',
      //component: About
      component:  resolve => require(['@/pages/About'], resolve),
    },{
      path:'/tag',
      name:'tag',
      //component:Tags
      component:  resolve => require(['@/pages/Tags'], resolve),
    },{
      // path: '/category/:id?',
      path: '/category',
      name: 'category',
      //component: Category,
      component:  resolve => require(['@/pages/Category'], resolve),
      meta: { needLogin:true }
      // children: [{
      //   path: '/category/aa',
      //   name: 'aa',
      //   component:  resolve => require(['@/pages/aa'], resolve)
      // }]
    },{
      path: '/view/:id',
      name: 'article',
      //component: Article
      component:  resolve => require(['@/pages/Article'], resolve),
    },{
        path:'*',
        redirect:'/'
    },{
      path: '/',
      name: 'Login',
      //component: Article
      component:  resolve => require(['@/pages/Login'], resolve),
    }
    ,{
      path: '/category/aa',
      name: 'aa',
      //component: Article
      component:  resolve => require(['@/pages/aa'], resolve),
    },{
      path: '/category/bb',
      name: 'bb',
      //component: Article
      component:  resolve => require(['@/pages/bb'], resolve),
    },{
      path: '/category/cc',
      name: 'cc',
      //component: Article
      component:  resolve => require(['@/pages/cc'], resolve),
    },{
      path: '/category/dd',
      name: 'dd',
      //component: Article
      component:  resolve => require(['@/pages/dd'], resolve),
    },{
      path: '/category/ee',
      name: 'ee',
      //component: Article
      component:  resolve => require(['@/pages/ee'], resolve),
    },{
      path: '/category/ff',
      name: 'ff',
      //component: Article
      component:  resolve => require(['@/pages/ff'], resolve),
    }
    ,{
      path: '/courseDesc',
      name: 'courseDesc',
      //component: Article
      component:  resolve => require(['@/pages/courseDesc'], resolve),
    }
    ,{
      path: '/details/1',
      name: 'details/1',
      //component: Article
      component:  resolve => require(['@/pages/firstdetail'], resolve),
    },{
      path: '/ChildCard',
      name: 'ChildCard',
      //component: Article
      component:  resolve => require(['@/sub/ChildCard'], resolve),
    },{
      path: '/ParentCard',
      name: 'ParentCard',
      //component: Article
      component:  resolve => require(['@/views/ParentCard'], resolve),
    },{
      path: '/ChildCardOne',
      name: 'ChildCardOne',
      //component: Article
      component:  resolve => require(['@/sub/ChildCardOne'], resolve),
    },{
      path: '/ParentCardOne',
      name: 'ParentCardOne',
      //component: Article
      component:  resolve => require(['@/views/ParentCardOne'], resolve),
    },{
      path: '/EditBlog',
      name: 'EditBlog',
      //component: Article
      component:  resolve => require(['@/sub/EditBlog'], resolve),
    },{
      path: '/singleBlog',
      name: 'singleBlog',
      //component: Article
      component:  resolve => require(['@/sub/singleBlog'], resolve),
    },{
      path: '/count',
      name: 'count',
      //component: Article
      component:  resolve => require(['@/views/count'], resolve),
    },{
      path: '/zhuce',
      name: 'zhuce',
      //component: Article
      component:  resolve => require(['@/pages/zhuce'], resolve),
    },{
      path: '/dl',
      name: 'dl',
      //component: Article
      component:  resolve => require(['@/pages/dl'], resolve),
    }
]

export default routes;
